
try:

    A=open("D:/111.txt","r")
except Exception as e:
    print(e)
    print("创建新文件")

